﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ManterGrupoVideo.aspx.cs" Inherits="ManterGrupoVideo" Title="Untitled Page" %>

<script runat="server">

   
   
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <div class="demoheading" style="width:400px">Manter Grupo Video<asp:ScriptManager 
            ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
</div>
     <asp:Panel ID="Panel2" runat="server" CssClass="collapsePanelHeader" Height="20px" Width="400px">
                    <div style="padding: 5px; cursor: pointer; vertical-align: middle;">
                        <div style="float: left;">Consultar Video</div>
                    </div>
                </asp:Panel>
    
    
    
   
    <div style="width:400">
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                DataSourceID="odsGrupoVideos">
                <Columns>
                    <asp:BoundField DataField="Codigo" HeaderText="Codigo" 
                        SortExpression="Codigo" />
                    <asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome" />
                    <asp:BoundField DataField="Descricao" HeaderText="Descricao" 
                        SortExpression="Descricao" />
                    <asp:BoundField DataField="Usuario" HeaderText="Usuario" 
                        SortExpression="Usuario" />
                    <asp:CheckBoxField DataField="Compartilhado" HeaderText="Compartilhado" 
                        SortExpression="Compartilhado" />
                    <asp:TemplateField HeaderText="Atualizar/Remover">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbAtualiza" runat="server" onclick="lbAtualiza_Click">Atualizar</asp:LinkButton>
                            &nbsp;
                            <asp:LinkButton ID="lbRemove" runat="server" onclick="lbRemove_Click">Remover</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
     
        <asp:ObjectDataSource ID="odsGrupoVideos" runat="server" 
        DataObjectTypeName="Negocios.GrupoDeVideos" DeleteMethod="Remove" 
        InsertMethod="Insere" OldValuesParameterFormatString="original_{0}" 
        SelectMethod="ConsultaTodos" TypeName="Negocios.GrupoDeVideosBLL" 
        UpdateMethod="Atualiza"></asp:ObjectDataSource>
     
        <br />
        
        <asp:Panel ID="Panel1" runat="server" CssClass="collapsePanelHeader" Height="20px" Width="400px">
                    <div style="padding: 5px; cursor: pointer; vertical-align: middle;">
                        <div style="float: left;">Consultar Video</div>
                    </div>
                </asp:Panel>
        <div style="width:400px">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <table style="width: 100%" class="divDados">
                        <tr class="divOID">
                            <td style="width: 100px">
                                <asp:Label ID="lbCodigo" runat="server" Text="Código"></asp:Label>
                            </td>
                            <td style="width: 366px">
                                <asp:TextBox ID="tbCodigo" runat="server" Enabled="False" Width="128px"></asp:TextBox>
                                <asp:Button ID="btNovo" runat="server" Text="Novo" 
                                    onclick="btNovo_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                                <asp:Label ID="lbNome" runat="server" Text="Nome"></asp:Label>
                            </td>
                            <td style="width: 366px">
                                <asp:TextBox ID="tbNome" runat="server" Enabled="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                                <asp:Label ID="lbDescricao" runat="server" Text="Descrição"></asp:Label>
                            </td>
                            <td style="width: 366px">
                                <asp:TextBox ID="tbDescricao" runat="server" Enabled="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                                <asp:Label ID="lbCompartilhado" runat="server" Text="Compartilhado"></asp:Label>
                            </td>
                            <td style="width: 366px">
                                <asp:CheckBox ID="cbCompartilhado" runat="server" Enabled="False" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 100px">
                                <asp:Label ID="lbUsuario" runat="server" Text="Usuário"></asp:Label>
                            </td>
                            <td style="width: 366px">
                                <asp:TextBox ID="tbUsuario" runat="server" Enabled="False"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:Button ID="btGravar" runat="server" Text="Gravar" Enabled="False" 
                                    onclick="btGravar_Click" style="height: 26px" />
                                <asp:Button ID="btCancelar" runat="server" Text="Cancelar" Enabled="False" 
                                    onclick="btCancelar_Click" Height="26px" />
                            </td>
                        </tr>
                    </table>
                    <br />
                    <asp:Label ID="lbErro" runat="server"></asp:Label>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
</asp:Content>

